<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SemOpt: SATFormulae Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">SemOpt
   &#160;<span id="projectnumber">0.2alpha5-SCC</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classSATFormulae.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">SATFormulae Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="SATFormulae" -->
<p>Class encompassing a list of `OrClause` linked by and operators.  
 <a href="classSATFormulae.html#details">More...</a></p>

<p><a href="classSATFormulae-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5120c3a2469b8124be715fa0d97fc545"></a><!-- doxytag: member="SATFormulae::SATFormulae" ref="a5120c3a2469b8124be715fa0d97fc545" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSATFormulae.html#a5120c3a2469b8124be715fa0d97fc545">SATFormulae</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Simple constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSATFormulae.html#a24f192aef15c7338da94440fbf11a1fd">appendOrClause</a> (<a class="el" href="classOrClause.html">OrClause</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method for appending a new <a class="el" href="classOrClause.html" title="Class encompassing a list of SAT variables (type `Variable`) linked by or operators.">OrClause</a> to the other clause.  <a href="#a24f192aef15c7338da94440fbf11a1fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSATFormulae.html#aa2f0f69c190ff01d8ab48e426d89e665">toSS</a> (stringstream *) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method for transforming the SAT formulae into a string `DIMACS` compliant.  <a href="#aa2f0f69c190ff01d8ab48e426d89e665"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSATFormulae.html#a613cef1d45631a255b65718f51c5024c">clone</a> (<a class="el" href="classSATFormulae.html">SATFormulae</a> *)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method for cloning (not coping the pointers) this object into a new one.  <a href="#a613cef1d45631a255b65718f51c5024c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSATFormulae.html#a8f519b3240b275633769ed70c9583d5d">size</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method returning the number of <a class="el" href="classOrClause.html" title="Class encompassing a list of SAT variables (type `Variable`) linked by or operators.">OrClause</a>.  <a href="#a8f519b3240b275633769ed70c9583d5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSATFormulae.html#a7c56233149efa47f3533010b09daf42b">empty</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if there are no formulae.  <a href="#a7c56233149efa47f3533010b09daf42b"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class encompassing a list of `OrClause` linked by and operators. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Federico Cerutti &lt;<a href="mailto:f.cerutti@abdn.ac.uk">f.cerutti@abdn.ac.uk</a>&gt; </dd></dl>
<dl class="copyright"><dt><b>Copyright:</b></dt><dd>GNU Public License v2 </dd></dl>

<p>Definition at line <a class="el" href="SATFormulae_8h_source.html#l00019">19</a> of file <a class="el" href="SATFormulae_8h_source.html">SATFormulae.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a24f192aef15c7338da94440fbf11a1fd"></a><!-- doxytag: member="SATFormulae::appendOrClause" ref="a24f192aef15c7338da94440fbf11a1fd" args="(OrClause)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classSATFormulae.html#a24f192aef15c7338da94440fbf11a1fd">SATFormulae::appendOrClause</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOrClause.html">OrClause</a>&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method for appending a new <a class="el" href="classOrClause.html" title="Class encompassing a list of SAT variables (type `Variable`) linked by or operators.">OrClause</a> to the other clause. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>The <a class="el" href="classOrClause.html" title="Class encompassing a list of SAT variables (type `Variable`) linked by or operators.">OrClause</a> to append </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">void</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="SATFormulae_8cpp_source.html#l00024">24</a> of file <a class="el" href="SATFormulae_8cpp_source.html">SATFormulae.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a613cef1d45631a255b65718f51c5024c"></a><!-- doxytag: member="SATFormulae::clone" ref="a613cef1d45631a255b65718f51c5024c" args="(SATFormulae *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classSATFormulae.html#a613cef1d45631a255b65718f51c5024c">SATFormulae::clone</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classSATFormulae.html">SATFormulae</a> *&#160;</td>
          <td class="paramname"><em>newsat</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method for cloning (not coping the pointers) this object into a new one. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">newsat</td><td>A pointer to an initialised <a class="el" href="classSATFormulae.html#a5120c3a2469b8124be715fa0d97fc545" title="Simple constructor.">SATFormulae()</a> object which will contain the copy of this object </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">void</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="SATFormulae_8cpp_source.html#l00068">68</a> of file <a class="el" href="SATFormulae_8cpp_source.html">SATFormulae.cpp</a>.</p>

<p>References <a class="el" href="SATFormulae_8cpp_source.html#l00014">SATFormulae()</a>, and <a class="el" href="SATFormulae_8cpp_source.html#l00058">size()</a>.</p>

</div>
</div>
<a class="anchor" id="a7c56233149efa47f3533010b09daf42b"></a><!-- doxytag: member="SATFormulae::empty" ref="a7c56233149efa47f3533010b09daf42b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classSATFormulae.html#a7c56233149efa47f3533010b09daf42b">SATFormulae::empty</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Check if there are no formulae. </p>
<dl class="retval"><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">bool</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="SATFormulae_8cpp_source.html#l00084">84</a> of file <a class="el" href="SATFormulae_8cpp_source.html">SATFormulae.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8f519b3240b275633769ed70c9583d5d"></a><!-- doxytag: member="SATFormulae::size" ref="a8f519b3240b275633769ed70c9583d5d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classSATFormulae.html#a8f519b3240b275633769ed70c9583d5d">SATFormulae::size</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method returning the number of <a class="el" href="classOrClause.html" title="Class encompassing a list of SAT variables (type `Variable`) linked by or operators.">OrClause</a>. </p>
<dl class="retval"><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">int</td><td>The number of <a class="el" href="classOrClause.html" title="Class encompassing a list of SAT variables (type `Variable`) linked by or operators.">OrClause</a> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="SATFormulae_8cpp_source.html#l00058">58</a> of file <a class="el" href="SATFormulae_8cpp_source.html">SATFormulae.cpp</a>.</p>

<p>Referenced by <a class="el" href="SATFormulae_8cpp_source.html#l00068">clone()</a>.</p>

</div>
</div>
<a class="anchor" id="aa2f0f69c190ff01d8ab48e426d89e665"></a><!-- doxytag: member="SATFormulae::toSS" ref="aa2f0f69c190ff01d8ab48e426d89e665" args="(stringstream *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classSATFormulae.html#aa2f0f69c190ff01d8ab48e426d89e665">SATFormulae::toSS</a> </td>
          <td>(</td>
          <td class="paramtype">stringstream *&#160;</td>
          <td class="paramname"><em>ss</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method for transforming the SAT formulae into a string `DIMACS` compliant. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">ss</td><td>A pointer to a stringstream object already initialised </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt><b>Return values:</b></dt><dd>
  <table class="retval">
    <tr><td class="paramname">void</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="SATFormulae_8cpp_source.html#l00034">34</a> of file <a class="el" href="SATFormulae_8cpp_source.html">SATFormulae.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="SATFormulae_8h_source.html">SATFormulae.h</a></li>
<li>src/<a class="el" href="SATFormulae_8cpp_source.html">SATFormulae.cpp</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="classSATFormulae.html">SATFormulae</a>      </li>

    <li class="footer">Generated on Fri Jan 17 2014 11:47:52 for SemOpt by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
